package com.alan.webscoket.vo;

import java.util.Date;
import java.util.List;

/**
 * Created by Alan on 2017/8/6.
 */
public class Message {

    private String welcome;

    private List<String> usernames;

    private String content;

    public void setContent(String name,String msg) {
        this.content = name + " " + new Date().toLocaleString() + ":<br/>"
                + msg + "<br/>";
    }

    public String getContent() {
        return content;
    }

    public String getWelcome() {
        return welcome;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setWelcome(String welcome) {
        this.welcome = welcome;
    }

    public List<String> getUsernames() {
        return usernames;
    }

    public void setUsernames(List<String> usernames) {
        this.usernames = usernames;
    }
}
